package devcken.runtime;

class EventInvoker<T> implements Runnable
{
	EventHandler<T> _eventHandler;
	
	T _argument;
	
	public EventInvoker(EventHandler<T> eventHandler, T argument)
	{
		this._eventHandler = eventHandler;
		this._argument = argument;
	}
	
	@Override
	public void run()
	{
		this._eventHandler.invoke(this._argument);
	}
}